﻿
namespace Silvery.Command
{
    public class Cmd_ShowSceneBlocks : StandardCommand
    {
        public Cmd_ShowSceneBlocks()
        {
            this.Command = "Scene_ShowBlocks";
            base.Instruction = "显示当前游戏里的所有场景的不可达点";
        }
        public override void Execute(IGameCommandBox parent, string parameter)
        {
            foreach (var obj in GameRoot.Current.GameObjects)
            {
                if (obj is Scene.SceneBase)
                    (obj as Scene.SceneBase).ShowAllBlocks(true);
            }
            base.Execute(parent, parameter);
        }
    }
}
